
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:ice="http://www.icesoft.com/icefaces/component">
    <f:loadBundle basename="resources.messages" var="msgs" />
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
        <title>#{msgs['wac.main.title']}</title>
        <link rel="STYLESHEET" type="text/css" href="${facesContext.externalContext.requestContextPath}/css/template.css" />
        <link rel="STYLESHEET" type="text/css" href="${facesContext.externalContext.requestContextPath}/css/login.css" />
    </head>
    
    <body background="#000000">
        <div class="loginPanel">
            <ice:form>
                <div  align="right" style="height: 100%; width: 80%; padding-top: 50px; padding-right: 80px;">
                    <ice:graphicImage url="/images/jbpccTitleFire.png" />
                    <div style="height: 25px" />
                    <div align="right" style="display: block; padding-right: 80px; height: 100%; width: 30%">
                        <ice:panelGrid columns="2" columnClasses="labelText">
                            <ice:outputLabel id="userNameLabel" value="#{msgs['wac.common.label.username']} : "
                                             styleClass="white" />
                            <ice:inputText id="userNameInputText" value="#{loginBean.loginName}" required="true"
                                           action="#{loginBean.login}">
                                <f:attribute name="errorFilterRef" value="wac.common.label.username" />
                            </ice:inputText>
                            <ice:outputLabel id="passwordLabel" value="#{msgs['wac.common.label.password']} : "
                                             styleClass="white" />
                            <ice:inputSecret id="userPasswordInputText" value="#{loginBean.loginPassword}" required="true"
                                             action="#{loginBean.login}">
                                <f:attribute name="errorFilterRef" value="wac.common.label.password" />
                            </ice:inputSecret>
                        </ice:panelGrid>
                        <div style="height: 25px" />
                        <ice:commandButton value="#{msgs['wac.common.button.login']}" action="#{loginBean.login}" />
                    </div>
                    <div class="labelText">
                        <ice:panelGroup styleClass="errorText">
                            <ice:messages id="mesages" showDetail="true" showSummary="false" />
                        </ice:panelGroup>
                    </div>
                </div>
            </ice:form>
        </div>
    </body>
</html>
